package com.shop.service;


import com.shop.dto.DiscountDTO;
import com.shop.dto.DiscountPageQueryDTO;
import com.shop.entity.Discount;
import com.shop.result.PageResult;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DiscountService {


    void deleteBatch(List<Long> ids);

    Discount getById(Long id);

    void save(DiscountDTO discountDTO);

    void update(DiscountDTO DiscountDTO);


    void startOrStop(Integer status, Long id);

    List<Discount> list(Long discountType);

    PageResult pageQuery(DiscountPageQueryDTO DiscountPageQueryDTO);
}
